<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property float $pay_amount 支付金额
 * @property int $id
 * @property int $paytime 支付时间
 * @property int $status 状态:1=未支付,2=已支付
 * @property int $user_id 用户
 * @property int $vip_id 会员类型
 * @property string $createtime
 * @property string $mark 备注
 * @property string $order_sn 订单编号
 * @property-read \app\model\User $user
 * @property-read \app\model\Vip $vip
 * @mixin \think\Model
 */
class VipOrders extends Model
{
	protected $createTime = 'createtime';
	
	
	function vip()
	{
		return $this->belongsTo(Vip::class,'vip_id');
	}
	
	function user()
	{
		return $this->belongsTo(User::class,'user_id');
	}
}
